package org.bugjail.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.Servlet;

/**
 * Servlet implementation class for Servlet: MissingParameterServlet
 *
 */
 public class ErrorServlet extends BasicUIServlet implements Servlet {
   static final long serialVersionUID = 1L;

	@Override
	protected void beforeAction(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		
	}

	@Override
	protected String pageTitle() {
		return "Error";
	}

	@Override
	protected void write(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		PrintWriter pw = response.getWriter();
		pw.print("ERROR: Something is wrong. Ask the admin for help.");
	}   	  	    
}